package com.tqjc.area.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


@TableName(value = "roller")
@Data
@EqualsAndHashCode(callSuper=false)
@DS("baotou")
@Schema(description = "辊道信息表")
public class Roller extends Model implements Serializable, Cloneable {
    /**
     * ID;辊道表主键
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Integer id;
    /**
     * 辊道名称
     */
    @Schema(description = "辊道名称")
    private String name;
    /**
     * 辊道x坐标
     */
    @Schema(description = "辊道x坐标")
    private Integer x;
    /**
     * 辊道y坐标
     */
    @Schema(description = "辊道y坐标")
    private Integer y;
    /**
     * 辊道初始高度
     */
    @Schema(description = "辊道初始高度")
    private Integer z;
    /**
     * 辊道钢板到位信号点位
     */

    @Schema(description = "选择点位")
    private String selectSignal;
    /**
     * 辊道空闲点位
     */

    @Schema(description = "允许吸板或放板点位")
    private String allowSignal;

    /**
     * 钢板数据点位
     */

    @Schema(description = "辊道锁定点位")
    private String lockSignal;

    @Schema(description = "获取钢板号点位")
    private String steelSignal;

    @TableField(exist = false)
    private int steelNum;            //一次task，suck钢板的数量

    @TableField(exist = false)
    private SteelPlate steelInfo4OffLine;            //辊道上等待下线的钢板信息，信息是从MES系统获取到的
}